#ifndef XAUDIOPLAY_H
#define XAUDIOPLAY_H


class XAudioPlay
{
public:
    static XAudioPlay* Get();
    virtual bool Start() = 0;
    virtual bool Stop() = 0;
    virtual bool Play(bool isplay) = 0;
    virtual bool Write(const char* data, int datasize) = 0;
    virtual int GetFree() = 0;
    void SetSampleRate(int iSampleRate){m_iSampleRate = iSampleRate;}
    void SetChannel(int iChannel){m_iChannel = iChannel;}
    void SetSampleSize(int iSampleSize){m_iSampleSize = iSampleSize;}

    virtual ~XAudioPlay(){}

protected:
    XAudioPlay();

    int m_iSampleRate;
    int m_iSampleSize;
    int m_iChannel;
};

#endif // XAUDIOPLAY_H
